package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EquipmentServiceBillingItemTypesMapper;
import com.ruoyi.system.domain.EquipmentServiceBillingItemTypes;
import com.ruoyi.system.service.IEquipmentServiceBillingItemTypesService;

/**
 * 设备服务计费项类型Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-09
 */
@Service
public class EquipmentServiceBillingItemTypesServiceImpl implements IEquipmentServiceBillingItemTypesService
{
    @Autowired
    private EquipmentServiceBillingItemTypesMapper equipmentServiceBillingItemTypesMapper;

    /**
     * 通过id查询设备服务计费项类型
     *
     * @param id 设备服务计费项类型主键
     * @return 设备服务计费项类型
     */
    @Override
    public EquipmentServiceBillingItemTypes selectEquipmentServiceBillingItemTypesById(Long id)
    {
        return equipmentServiceBillingItemTypesMapper.selectEquipmentServiceBillingItemTypesById(id);
    }

    /**
     * 查询设备服务计费项类型列表
     *
     * @param equipmentServiceBillingItemTypes 设备服务计费项类型
     * @return 设备服务计费项类型
     */
    @Override
    public List<EquipmentServiceBillingItemTypes> selectEquipmentServiceBillingItemTypesList(EquipmentServiceBillingItemTypes equipmentServiceBillingItemTypes)
    {
        return equipmentServiceBillingItemTypesMapper.selectEquipmentServiceBillingItemTypesList(equipmentServiceBillingItemTypes);
    }

    /**
     * 新增设备服务计费项类型
     *
     * @param equipmentServiceBillingItemTypes 设备服务计费项类型
     * @return 结果
     */
    @Override
    public int insertEquipmentServiceBillingItemTypes(EquipmentServiceBillingItemTypes equipmentServiceBillingItemTypes)
    {
        return equipmentServiceBillingItemTypesMapper.insertEquipmentServiceBillingItemTypes(equipmentServiceBillingItemTypes);
    }

    /**
     * 修改设备服务计费项类型
     *
     * @param equipmentServiceBillingItemTypes 设备服务计费项类型
     * @return 结果
     */
    @Override
    public int updateEquipmentServiceBillingItemTypes(EquipmentServiceBillingItemTypes equipmentServiceBillingItemTypes)
    {
        return equipmentServiceBillingItemTypesMapper.updateEquipmentServiceBillingItemTypes(equipmentServiceBillingItemTypes);
    }

    /**
     * 通过id批量删除设备服务计费项类型信息
     *
     * @param ids 需要删除的设备服务计费项类型主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentServiceBillingItemTypesByIds(Long[] ids)
    {
        return equipmentServiceBillingItemTypesMapper.deleteEquipmentServiceBillingItemTypesByIds(ids);
    }

    /**
     * 通过id删除设备服务计费项类型信息
     *
     * @param id 设备服务计费项类型主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentServiceBillingItemTypesById(Long id)
    {
        return equipmentServiceBillingItemTypesMapper.deleteEquipmentServiceBillingItemTypesById(id);
    }
}
